home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- case "${1}" in
- configure)
- if [ -x /usr/sbin/update-initramfs ]
- then
- update-initramfs -u
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
-
- ;;
-
- *)
- echo "postinst called with unknown argument \`${1}'" >&2
- exit 1
- ;;
- esac
-
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/open-vm-tools" ]; then
- update-rc.d open-vm-tools start 38 2 3 4 5 . stop 38 0 1 6 . >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d open-vm-tools start || exit $?
- else
- /etc/init.d/open-vm-tools start || exit $?
- fi
- fi
- # End automatically added section
- # Automatically added by dh_installmodules
- if [ "$1" = configure ]; then
- if [ -e "/etc/modprobe.d/open-vm-tools" ]; then
- echo "Preserving user changes to /etc/modprobe.d/open-vm-tools.conf ..."
- if [ -e "/etc/modprobe.d/open-vm-tools.conf" ]; then
- mv -f "/etc/modprobe.d/open-vm-tools.conf" "/etc/modprobe.d/open-vm-tools.conf.dpkg-new"
- fi
- mv -f "/etc/modprobe.d/open-vm-tools" "/etc/modprobe.d/open-vm-tools.conf"
- fi
- fi
- # End automatically added section
- # Automatically added by dh_makeshlibs
- if [ "$1" = "configure" ]; then
- ldconfig
- fi
- # End automatically added section
-
-
- exit 0
-